<%- include header %>
<div id="ziliao" class="container li">
  <h2>完善个人资料</h2>
  <% if (user) { %>
  <form method="post" action="/ziliao/<%= user.name %>">
    <label class="xingming">姓名：<input name="xingming" type="text" value="<%= posts.ziliaos.xingming%>"/><span>*</span></label>
    <label class="xingbie">性别：</label>
    <select name="nan">
      <option value=""></option>
      <option value="男">男</option>
      <option value="女">女</option>
    </select><br/>
    <label class="xingming">年龄：<input name="nianling" type="text" value="<%= posts.ziliaos.nianling%>"/><span>*</span></label>
    <label class="shengri kuan">生日：<input name="shengri" type="text" value="<%= posts.ziliaos.shengri%>"/><span>*</span></label><br/>
    <label class="xingming">生肖：</label>
    <select name="shengxiao" id="shengxiao">
      <option value=""></option>
      <option value="鼠">鼠</option>
      <option value="牛">牛</option>
      <option value="虎">虎</option>
      <option value="兔">兔</option>
      <option value="龙">龙</option>
      <option value="蛇">蛇</option>
      <option value="马">马</option>
      <option value="羊">羊</option>
      <option value="猴">猴</option>
      <option value="鸡">鸡</option>
      <option value="狗">狗</option>
      <option value="猪">猪</option>
    </select>
    <label class="shengxiao">星座：</label>
    <select name="xingzuo">
      <option value=""></option>
      <option value="水瓶座">水瓶座</option>
      <option value="双鱼座">双鱼座</option>
      <option value="白羊座">白羊座</option>
      <option value="金牛座">金牛座</option>
      <option value="双子座">双子座</option>
      <option value="巨蟹座">巨蟹座</option>
      <option value="狮子座">狮子座</option>
      <option value="处女座">处女座</option>
      <option value="天秤座">天秤座</option>
      <option value="天蝎座">天蝎座</option>
      <option value="射手座">射手座</option>
      <option value="摩羯座">摩羯座</option>
    </select><br/>
    <label class="xingming">学历：</label>
    <select name="xueli">
      <option value=""></option>
      <option value="小学及以下">小学及以下</option>
      <option value="初中">初中</option>
      <option value="高中">高中</option>
      <option value="中专">中专</option>
      <option value="大专">大专</option>
      <option value="本科">本科</option>
      <option value="研究生">研究生</option>
      <option value="博士及以上">博士及以上</option>
    </select>
    <label class="kuan">学校：<input name="xuexiao" type="text" value="<%= posts.ziliaos.xuexiao%>"/></label><br/>
    <label class="youxiang">邮箱：<input name="email" type="email" value="<%= posts.ziliaos.email%>"/><span>*</span></label>
    <label class="jiaxiang">家乡：<input name="jiaxiang" type="text" value="<%= posts.ziliaos.jiaxiang%>"/></label>
    <label class="xingming">家乡简介：<br/><textarea name="jianjie" cols="50" rows="5"><%= posts.ziliaos.jianjie%></textarea></label>
    <label class="xingming">个人说明：<br/><textarea name="shuoming" cols="50" rows="5"><%= posts.ziliaos.shuoming%></textarea></label>
    <p>注：带<span>*</span>&#x3000;为必填项</p>
    <input class="baocun bao" type="submit" value="保存"/>
    <a href="/../geren"><input class="baocun" type="button" value="取消"/></a>
  </form>
  <% }else{ %>
  <form method="post" action="">
    <label class="xingming">姓名：<input name="xingming" type="text"/><span>*</span></label>
    <label class="xingbie">性别：</label>
    <select name="nan">
      <option value=""></option>
      <option value="男">男</option>
      <option value="女">女</option>
    </select><br/>
    <label class="xingming">年龄：<input name="nianling" type="text"/><span>*</span></label>
    <label class="shengri kuan">生日：<input name="shengri" type="text"/><span>*</span></label><br/>
    <label class="xingming">生肖：</label>
      <select name="shengxiao" id="shengxiao">
        <option value=""></option>
        <option value="鼠">鼠</option>
        <option value="牛">牛</option>
        <option value="虎">虎</option>
        <option value="兔">兔</option>
        <option value="龙">龙</option>
        <option value="蛇">蛇</option>
        <option value="马">马</option>
        <option value="羊">羊</option>
        <option value="猴">猴</option>
        <option value="鸡">鸡</option>
        <option value="狗">狗</option>
        <option value="猪">猪</option>
      </select>
    <label class="shengxiao">星座：</label>
      <select name="xingzuo">
        <option value=""></option>
        <option value="水瓶座">水瓶座</option>
        <option value="双鱼座">双鱼座</option>
        <option value="白羊座">白羊座</option>
        <option value="金牛座">金牛座</option>
        <option value="双子座">双子座</option>
        <option value="巨蟹座">巨蟹座</option>
        <option value="狮子座">狮子座</option>
        <option value="处女座">处女座</option>
        <option value="天秤座">天秤座</option>
        <option value="天蝎座">天蝎座</option>
        <option value="射手座">射手座</option>
        <option value="摩羯座">摩羯座</option>
      </select><br/>
    <label class="xingming">学历：</label>
    <select name="xueli">
      <option value=""></option>
      <option value="小学及以下">小学及以下</option>
      <option value="初中">初中</option>
      <option value="高中">高中</option>
      <option value="中专">中专</option>
      <option value="大专">大专</option>
      <option value="本科">本科</option>
      <option value="研究生">研究生</option>
      <option value="博士及以上">博士及以上</option>
    </select>
    <label class="kuan">学校：<input name="xuexiao" type="text"/></label><br/>
    <label class="youxiang">邮箱：<input name="email" type="email"/><span>*</span></label>
    <label class="jiaxiang">家乡：<input name="jiaxiang" type="text"/></label>
    <label class="xingming">家乡简介：<br/><textarea name="jianjie" cols="50" rows="5"></textarea></label>
    <label class="xingming">个人说明：<br/><textarea name="shuoming" cols="50" rows="5"></textarea></label>
    <p>注：带<span>*</span>&#x3000;为必填项</p>
    <input class="baocun bao" type="submit" value="保存"/>
    <a href="/../geren"><input class="baocun" type="button" value="取消"/></a>
  </form>
  <% } %>
</div>
<%- include footer %>